package com.openbravo.ws.externalsales;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class Tax
  implements Serializable
{
  private static final long serialVersionUID = 9131564148974L;
  private String id;
  private String name;
  private double percentage;
  private Object __equalsCalc = null;
  private boolean __hashCodeCalc = false;
  private static TypeDesc typeDesc = new TypeDesc(Tax.class, true);

  public Tax()
  {
  }

  public Tax(String paramString1, String paramString2, double paramDouble)
  {
    this.id = paramString1;
    this.name = paramString2;
    this.percentage = paramDouble;
  }

  public String getId()
  {
    return this.id;
  }

  public void setId(String paramString)
  {
    this.id = paramString;
  }

  public String getName()
  {
    return this.name;
  }

  public void setName(String paramString)
  {
    this.name = paramString;
  }

  public double getPercentage()
  {
    return this.percentage;
  }

  public void setPercentage(double paramDouble)
  {
    this.percentage = paramDouble;
  }

  public synchronized boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof Tax))
      return false;
    Tax localTax = (Tax)paramObject;
    if (paramObject == null)
      return false;
    if (this == paramObject)
      return true;
    if (this.__equalsCalc != null)
      return this.__equalsCalc == paramObject;
    this.__equalsCalc = paramObject;
    int i = ((this.id == null) && (localTax.getId() == null)) || ((this.id != null) && (this.id.equals(localTax.getId())) && (((this.name == null) && (localTax.getName() == null)) || ((this.name != null) && (this.name.equals(localTax.getName())) && (this.percentage == localTax.getPercentage())))) ? 1 : 0;
    this.__equalsCalc = null;
    return i==1;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc)
      return 0;
    this.__hashCodeCalc = true;
    int i = 1;
    if (getId() != null)
      i += getId().hashCode();
    if (getName() != null)
      i += getName().hashCode();
    i += new Double(getPercentage()).hashCode();
    this.__hashCodeCalc = false;
    return i;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanSerializer(paramClass, paramQName, typeDesc);
  }

  public static Deserializer getDeserializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanDeserializer(paramClass, paramQName, typeDesc);
  }

  static
  {
    typeDesc.setXmlType(new QName("/services/ExternalSales", "Tax"));
    ElementDesc localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("id");
    localElementDesc.setXmlName(new QName("", "id"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("name");
    localElementDesc.setXmlName(new QName("", "name"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("percentage");
    localElementDesc.setXmlName(new QName("", "percentage"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "double"));
    localElementDesc.setNillable(false);
    typeDesc.addFieldDesc(localElementDesc);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.externalsales.Tax
 * JD-Core Version:    0.6.0
 */